package com.shop.common.enums.pink;

import lombok.Getter;

/**
 * 收入类型
 */
@Getter
public enum StorePinkStatusEnum {

    //状态0 未支付1进行中（已支付）,2已中奖,3寄售，4提货，5取消

    NO_PAY(0, "未支付"),
    PINKING(1, "拼团中"),
    WINING(2, "已中奖"),
    JISHOU_ZHONG(3, "寄售中"),
    TIHUO(4, "已提货"),
    CANCEL(5, "已取消"),
    JISHOU(6, "已寄售"),
    NOT_ZJ(7, "未中奖"),
    ;

    private int key;
    private String name;

    StorePinkStatusEnum(int key, String name) {
        this.key = key;
        this.name = name;
    }

    public static StorePinkStatusEnum val(int key) {
        for (StorePinkStatusEnum enumObj : StorePinkStatusEnum.values()) {
            if(enumObj.key == key) {
                return enumObj;
            }
        }
        return null;
    }
}
